﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Battleship
{
    public class PortList
    {
        public List<Port> content;
        public PortList()
        {
            content = new List<Port>();
        }
        public Port findPortByName(string name)
        {
            foreach (Port item in content)
            {
                if (item.PN.Equals(name))
                {
                    return item;
                }
            }
            return null;
        }
    }
}
